package com.dinpay.plugin.activity;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.webkit.WebSettings;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.dinpay.plugin.c.a.a;
import com.dinpay.plugin.d.c;
import com.dinpay.plugin.d.i;

public class AgreeMentActivity extends DinpayBaseActivity
{
  private WebView a;
  private View.OnClickListener b = new a(this);

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    LinearLayout.LayoutParams localLayoutParams = new LinearLayout.LayoutParams(-1, -2);
    LinearLayout localLinearLayout = new LinearLayout(this);
    localLinearLayout.setLayoutParams(localLayoutParams);
    localLinearLayout.setOrientation(1);
    localLinearLayout.setBackgroundColor(Color.parseColor("#f2f2f2"));
    RelativeLayout localRelativeLayout = new RelativeLayout(this);
    localRelativeLayout.setBackgroundDrawable(i.a(getResources(), AgreeMentActivity.class, a.a.n));
    localRelativeLayout.setLayoutParams(new ViewGroup.LayoutParams(-1, (int)(0.5F + 40.0F * getResources().getDisplayMetrics().density)));
    RelativeLayout.LayoutParams localLayoutParams1 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams1.addRule(9);
    localLayoutParams1.addRule(15);
    localLayoutParams1.leftMargin = 10;
    ImageView localImageView1 = new ImageView(this);
    localImageView1.setScaleType(ImageView.ScaleType.CENTER);
    localImageView1.setAdjustViewBounds(true);
    localImageView1.setPadding(15, 10, 0, 10);
    localImageView1.setId(200001);
    localImageView1.setBackgroundDrawable(i.a(getResources(), BindMobileActivity.class, a.a.i));
    localImageView1.setOnClickListener(this.b);
    RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams2.addRule(13);
    TextView localTextView = new TextView(this);
    localTextView.setText("支付协议");
    localTextView.setTextSize(18.0F);
    localTextView.setTextColor(Color.parseColor("#FFFFFF"));
    localTextView.setId(1000002);
    localTextView.setGravity(17);
    RelativeLayout.LayoutParams localLayoutParams3 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams3.addRule(11);
    localLayoutParams3.addRule(15);
    localLayoutParams3.rightMargin = 10;
    ImageView localImageView2 = new ImageView(this);
    localImageView2.setScaleType(ImageView.ScaleType.CENTER);
    localImageView2.setAdjustViewBounds(true);
    localImageView2.setId(100001);
    localImageView2.setBackgroundDrawable(i.a(getResources(), BindMobileActivity.class, a.a.m));
    localRelativeLayout.addView(localImageView1, localLayoutParams1);
    localRelativeLayout.addView(localTextView, localLayoutParams2);
    localRelativeLayout.addView(localImageView2, localLayoutParams3);
    localLinearLayout.addView(localRelativeLayout);
    this.a = new WebView(this);
    localLinearLayout.addView(this.a, localLayoutParams);
    WebSettings localWebSettings = this.a.getSettings();
    localWebSettings.setJavaScriptEnabled(true);
    localWebSettings.setJavaScriptCanOpenWindowsAutomatically(true);
    localWebSettings.setAllowFileAccess(true);
    localWebSettings.setSupportZoom(false);
    localWebSettings.setBuiltInZoomControls(false);
    localWebSettings.setUseWideViewPort(false);
    localWebSettings.setDefaultTextEncodingName("utf-8");
    localWebSettings.setLoadWithOverviewMode(true);
    localWebSettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
    this.a.setScrollBarStyle(0);
    this.a.loadData("", "text/html", null);
    this.a.loadUrl(c.e);
    setContentView(localLinearLayout);
    ExitApplication.a().a(this);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.activity.AgreeMentActivity
 * JD-Core Version:    0.6.2
 */